High Quality Instance Segmentation

ABSTRACT

Disclosed herein are methods and systems for performing instance segmentation that can provide improved estimation of object boundaries. Implementations can include a machine-learned segmentation model trained to estimate an initial object boundary based on a truncated signed distance function (TSDF) generated by the model. The model can also generate outputs for optimizing the TSDF over a series of iterations to produce a final TSDF that can be used to determine the segmentation mask.

RELATED APPLICATIONS

This application claims priority to and the benefit of U.S. Provisional Patent Application No. 62/936,448, filed Nov. 16, 2019, and U.S. Provisional Patent Application No. 63/024,847, filed May 14, 2020, each of which are hereby incorporated herein by reference in their entireties.

FIELD

The present disclosure relates generally to computing systems and computer-implemented methods for generating improved segmentation masks.

BACKGROUND

Obtaining precise and high-quality instance segmentation masks is of high importance in many modern applications such as robotic manipulation and autonomous driving. Currently, most state-of-the-art models are based on the Mask R-CNN framework, which while very powerful, outputs masks at low resolutions. Low resolution masks can result in imprecise boundaries and irregularly disconnected regions in the mask.

On the other hand, energy based segmentation methods can impose desirable global and local data and geometry constraints on the segmentation process. However, the direct dependence of these methods on good initialization, non-robust image cues, and manual setting of hyperparameters renders them unsuitable for modern applications.

SUMMARY

Aspects and advantages of embodiments of the present disclosure will be set forth in part in the following description, or can be learned from the description, or can be learned through practice of the embodiments.

One example aspect of the present disclosure is directed to a computer-implemented method for generating instance segmentation masks for objects depicted in images. The method includes providing, by one or more computing devices, an image comprising a plurality of pixels to a machine-learned segmentation model comprising a plurality of heads. The plurality of heads include a first head configured to generate a truncated signed distance function initialization for an object detected in the image, wherein the truncated signed distance function initialization estimates a signed distance for a subset of pixels of the plurality of pixels to a closest pixel that is associated with an initial boundary of the object. The plurality of heads include a second head configured to output a deep object feature representation for the object, wherein the deep object feature representation comprises a feature embedding generated by mapping intensities for each pixel in the subset of pixels to a different dimensional space. The method includes generating, by the one or more computing devices, the truncated signed distance function initialization with the first head of the machine-learned segmentation model and the deep object feature representation with the second head of the machine-learned segmentation model. The method includes for at least one object detected in the image, iteratively updating, by the one or more computing devices and based at least in part on the deep object feature representation, the truncated signed distance function initialization associated with said object by performing Chan-Vese optimization over a number of iterations. The method includes determining, by the one or more computing devices, an instance segmentation mask for the image based on a final truncated signed distance function generated by updating the truncated signed distance function initialization over the number of iterations.

Another example aspect of the present disclosure is directed to a computing system that includes one or more processors and one or more non-transitory computer-readable media that collectively store: a machine-learned segmentation model comprising a region proposal network and a plurality of heads. The region proposal network processes the image to generate a plurality of regions of interest respectively associated with a plurality of candidate objects. The plurality of heads include a first head configured to generate a truncated signed distance function initialization for each region of interest, wherein the truncated signed distance function initialization for each region of interest estimates a signed distance for a subset of pixels of the plurality of pixels to a closest pixel that is associated with an initial boundary of the candidate object associated with the region of interest. The plurality of heads include a second head configured to output a deep object feature representation for each region of interest, wherein the deep object feature representation for each region of interest comprises a feature embedding generated by mapping intensities for each pixel in the region of interest of pixels to a different dimensional space. The computing system includes instructions that, when executed by the one or more processors, cause the one or more processors to perform operations. The operations include providing the image comprising the plurality of pixels to the region proposal network. The operations include receiving plurality of regions of interest as an output of the region proposal network. The operations include, for each of the regions of interest: generating the truncated signed distance function initialization with the first head of the machine-learned segmentation model and the deep object feature representation with the second head of the machine-learned segmentation model; iteratively updating, based at least in part on the deep object feature representation, the truncated signed distance function initialization associated with said object by optimizing an energy function over a number of iterations; and determining an instance segmentation mask for the candidate object based on a final truncated signed distance function generated by updating the truncated signed distance function initialization over the number of iterations.

Another example aspect of the present disclosure is directed to an autonomous vehicle. The autonomous vehicle includes a computing system comprising one or more non-transitory computer readable media collectively storing instructions that when executed by one or more processors cause the computing system to perform operations. The operations include obtaining, from one or more cameras in communication with the computing system, an image comprising a plurality of pixels. The operations include providing the image to a machine-learned segmentation model comprising a plurality of heads. The plurality of heads comprise: a first head configured to generate a truncated signed distance function initialization for an object depicted in the image, wherein the truncated signed distance function initialization estimates a signed distance for a subset of pixels of the plurality of pixels to a closest pixel that is associated with an initial boundary of the object; and a second head configured to output a deep object feature representation for the object, wherein the deep object feature representation comprises a feature embedding generated by mapping intensities for each pixel in a region of pixels to a different dimensional space. The operations include generating the truncated signed distance function initialization with the first head of the machine-learned segmentation model and the deep object feature representation with the second head of the machine-learned segmentation model. The operations include, for at least one object detected in the image: iteratively updating, based at least in part on the deep object feature representation, the truncated signed distance function initialization associated with said object by optimizing an energy function over a number of iterations. The operations include determining an instance segmentation mask for the image based on a final truncated signed distance function generated by updating the truncated signed distance function initialization over the number of iterations. The operations include modifying a control operation of the autonomous vehicle based at least in part on the instance segmentation mask, the final truncated signed distance function, or both.

Another example aspect of the present disclosure is directed to one or more non-transitory computer-readable media that collectively store instructions that when executed by one or more processors cause the one or more processors to perform operations. The operations include obtaining, from one or more cameras in communication with the computing system, an image comprising a plurality of pixels. The operations include providing the image to a machine-learned segmentation model comprising a plurality of heads. The plurality of heads include a first head configured to generate a truncated signed distance function initialization for an object depicted in the image, wherein the truncated signed distance function initialization estimates a signed distance for a subset of pixels of the plurality of pixels to a closest pixel that is associated with an initial boundary of the object, and a second head configured to output a deep object feature representation for the object, wherein the deep object feature representation comprises a feature embedding generated by mapping intensities for each pixel in a region of pixels to a different dimensional space. The operations include generating the truncated signed distance function initialization with the first head of the machine-learned segmentation model and the deep object feature representation with the second head of the machine-learned segmentation model. The operations include for at least one object detected in the image: iteratively updating, based at least in part on the deep object feature representation, the truncated signed distance function initialization associated with said object by optimizing an energy function over a number of iterations. The operations include determining an instance segmentation mask for the image based on a final truncated signed distance function generated by updating the truncated signed distance function initialization over the number of iterations. The operations include evaluating a loss function that compares the instance segmentation mask to a ground truth mask and compares the final truncated signed distance function to a ground truth truncated signed distance function target. The operations include modifying one or more values or one or more parameters of each of the first head and the second head based at least in part on the loss function

Other aspects of the present disclosure are directed to various systems, apparatuses, non-transitory computer-readable media, user interfaces, and electronic devices.

These and other features, aspects, and advantages of various embodiments of the present disclosure will become better understood with reference to the following description and appended claims. The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate example embodiments of the present disclosure and, together with the description, serve to explain the related principles.

BRIEF DESCRIPTION OF THE DRAWINGS

Detailed discussion of embodiments directed to one of ordinary skill in the art are set forth in the specification, which makes reference to the appended figures, in which:

FIG. 1 illustrates an example implementation for an autonomous vehicle computing system configured to perform instance segmentation according to example embodiments of the present disclosure.

FIG. 2 illustrates flow diagram of an example implementation for generating a segmentation mask according to example embodiments of the present disclosure.

FIG. 3 illustrates an example computing system for performing instance segmentation using one or more machine-learned models according to example embodiments of the present disclosure.

FIG. 4 illustrates a process flow diagram showing an example method for generating a segmentation mask according to example embodiments of the present disclosure.

FIG. 5 illustrates an example image segmentation computing system according to example embodiments of the present disclosure.

FIG. 6 illustrates an example architecture and dataflow for generating a segmentation mask that uses a region proposal network and Chan-Vese evolution.

DETAILED DESCRIPTION

Reference now will be made in detail to embodiments, one or more example(s) of which are illustrated in the drawings. Each example is provided by way of explanation of the embodiments, not limitation of the present disclosure. In fact, it will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments without departing from the scope or spirit of the present disclosure. For instance, features illustrated or described as part of one embodiment can be used with another embodiment to yield a still further embodiment. Thus, it is intended that aspects of the present disclosure cover such modifications and variations.

In general, the present disclosure is directed to computer-implemented methods and systems for performing instance segmentation that can provide improved estimation of object boundaries. In particular, aspects of the present disclosure combine the strengths of modern deep learning with the benefits of continuous energy based segmentation frameworks. In particular, rather than using models that perform only object versus background classification to segment the image, machine-learned models according to the present disclosure can be trained in a multi-task manner to predict multiple features or outputs related to objects detected in the image. As an example, a model can have multiple different heads (e.g., four) that predict different features or outputs based on an intermediate representation produced by a backbone model such as, for example, a feature pyramid network. As used herein, a head of a machine-learned model can be considered a separately trained or co-trained portion of the machine-learned model (e.g., neural network) that is configured to determine a certain output given an input to the machine-learned model or given an intermediate output generated by the machine-learned model. For instance, an example multi-headed model in accordance with the present disclosure can include one head trained to predict an initialization of a truncated signed distance function (TSDF) representing a (truncated and signed) distance from each pixel to a predicted nearest boundary of the object. As another example, another one of the heads can predict a deep object feature representation. Yet further heads can predict hyperparameters and/or classification outputs and/or bounding boxes. The truncated signed distance function can then undergo an optimization process utilizing other learned features from the image (e.g., the deep object feature representation) to generate a final TSDF that can be converted to a segmentation mask. As one example, a Chan-Vese optimization can be performed on the TSDF to output a refined segmentation mask.

As an example for illustration, consider performing instance segmentation for an image of a busy city area. The large number of objects and proximity of the objects to one another can provide challenges for identifying object boundaries and can result in grouping objects together. Real object boundaries are generally smooth and display low noise; however, this can be difficult to achieve, even when using state of the art segmentation models such as Mask R-CNN. Thus, rather than performing segmentation based on classification of pixels associated with background and pixels associated with an object, implementations according to the present disclosure are directed to identifying object boundaries using a combination of deep learning and energy-based optimization.

In particular, some example implementations in accordance with the present disclosure utilize a multi-headed machine-learned model which has been trained to predict an initial TSDF, as well as a deep object feature representation. The deep object feature representation can provide an embedded representation of the image that adjusts the dimensionality of underlying data (e.g., pixel values) to account for both global and local information. In this manner, the deep object feature representation can provide additional attributes for determining whether a pixel location is associated with the object or with the background beyond the pixel value (e.g., pixel intensity, pixel color, etc.) itself. Utilizing these initial features predicted by a machine-learned model, a second model and/or algorithm can optimize an energy function to iteratively update the initial TSDF to produce a final TSDF. The final TSDF can then be transformed to generate the segmentation mask.

Thus, an example aspect of the present disclosure includes a multi-headed machine-learned model. The multi-headed machine-learned model can be trained as a whole to allow for crossover or multi-task learning between the heads, which may improve performance for implementations that include additional heads such as a head for trained to predict the object class and/or localization or a head trained to predict numeric values associated with optimizing the initial TSDF. As an example, object localization can be used to generate a bounding box or other coordinates (e.g., an object centroid) to limit additional processing such as optimization, which may reduce computation time and/or memory resources. More particularly, the object localization (e.g., bounding box) can, in some example implementations, be used to extract the deep object feature representation and initial TSDF based solely on pixels within the bounding box. In this manner, the effect of differences in lighting, color values, or other image characteristics over the entire image may have a reduced effect, which can lead to improved segmentation masks. Further, performing segmentation for each instance of an object can allow for parallel processing for at least optimization of the energy function, since each TSDF initialization can be associated with a respective region of the image based at least in part on the object localization.

Additionally, crossover or multi-task learning between the object classification and other heads may improve determination of the deep object feature representation and/or the initial TSDF. Since the TSDF is a function of distance to the object boundary, certain object classes may have features such as curved boundaries that can improve generating an initial TSDF. Alternatively or additionally, certain objects may include features such as clear portions or patterns that could be predicted as associated with background imagery. For these objects, the deep object feature representation head may learn an improved prediction for associating these pixels with the object, rather than with background.

Aspects of the energy function can include a distance calculation for pixels associated with the object and a distance calculation for pixels associated with background. In this manner, the energy function can in some respects be considered as similar to clustering techniques such as K-Means. For example, the energy function can include a first distance term defining a distance calculation between the deep object feature representation predicted by the machine learned model and a constant (e.g., c₁) to denote pixels representing the object, by associating (e.g., multiplying) this difference with a first area (e.g., H) for a region of interest. The energy function can also include a second distance term defining a distance calculation between deep object feature representation predicted by the machine-learned model and a second constant (e.g., c₂) to denote pixels that do not represent the object (e.g., background), by associating (e.g., multiplying) this difference with the remainder of the region of interest (e.g., 1-H). Further the region of interest can be a function of the truncated signed distance function such that the region of interest (e.g., H) and the remainder of the region of interest (e.g., 1-H) can be indexed to pixels associated with the object (e.g., pixels within the TSDF and/or pixels having a positive TSDF value) or associated with background (e.g., pixels outside of the TSDF and/or pixels having a negative TSDF value).

In certain implementations the energy function may include additional terms and/or constants for weighting the effect of a term. As an example, the energy function may also include a term to encourage a smoother boundary between the region of interest and the remainder of the region of interest. Thus, generally, some example energy functions encourage two groupings of pixels (the groupings determined based on the TSDF) to independently have similar deep object feature representations. Further, the energy function can include a boundary condition (e.g., based on the TSDF and/or a derivative of the TSDF) to optimize a characteristic of the boundary (e.g., a smoothness, a linearity, etc.)

While described here using general terms, it should be understood that the energy function can include further parameters, referred to in some instances as hyperparameters, for defining the weightings of one or more terms of the energy function and/or for defining optimization terms such as a timestep for performing an optimization technique (e.g., gradient descent) and/or other modifiable characteristics of an optimization. Further, in some implementations, the hyperparameters may be determined using a separate head of the machine-learned model, which may improve model performance since different object classes may be associated with different learned hyperparameters.

Thus, an example aspect of implementations according to the present disclosure includes a multi-headed machine-learned model configured to determine one or more predicted initial attributes of an image. These initial attributes can be collectively grouped to produce an energy function that, upon optimization, can be used to extract a final TSDF for generating a segmentation mask.

For optimizing the energy function, example implementations can iteratively update one or more parameters associated with the energy function such as the current iteration of the TSDF, the first constant, and/or the second constant. For optimization, various techniques may be used to determine an optimal solution. For instance, the energy function may be defined as a fully differentiable equation over the entire image or over a subset of pixels extracted from the image. Further, the number of iterations can be determined using a machine-learned model or may be predefined.

After optimizing the energy function over the number of iterations, the current iteration of the TSDF can be taken as the final TSDF and can be used to determine the instance segmentation mask. Since the TSDF provides a signed distance for each pixel to a nearest boundary, the pixels associated with a 0 TSDF can be identified to determine the final mask. For instance, pixels associated with negative values of the TSDF can be defined as associated with the background and pixels associated with positive values of the TSDF can be defined as associated with the object. Alternatively, certain implementations may include a threshold of pixels. For instance, in some applications, it may be of importance to overestimate the boundaries of the object (e.g., to prevent collision with an object boundary). In these implementations, the generation of the final mask may include associating a subset of pixels with the object based on the final TSDF. As an example, absolute values of the final TSDF that are close to 0 (e.g., within 1-50 depending on the number of pixels and/or image resolution) may also be included, in addition to pixels associated with a positive TSDF value, to generate the segmentation mask to provide an error threshold.

In some implementations, the optimization of a deep Chan-Vese can be unrolled as a parameter-free recurrent neural network, which renders the whole model pipeline end-to-end differentiable. Thus, the proposed systems are able to obtain more precise object masks at higher resolutions that satisfy region based and geometric constraints.

One example implementation of the present disclosure includes a computer-implemented method for generating instance segmentation masks for objects depicted in images. The method can include obtaining image data (e.g., one or more image frames) comprising a plurality of pixels. The image data can be provided (e.g., input, transmitted, etc.) to a machine-learned segmentation model having a plurality of heads, each head configured to determine a separate output. For instance, the example machine-learned model can include at least two heads: a first head configured to generate a truncated signed distance function initialization for an object depicted in the image and a second head configured to generate a deep object feature representation.

As previously disclosed, the truncated signed distance function initialization can estimate a signed distance (e.g., a negative, positive, or zero numeric value) for a subset of the pixels to a closest pixel that is associated with an initial boundary of the object. Thus, the truncated signed distance function can be considered as estimating a group of pixels associated with the object boundary and calculating a distance for each pixel in the subset of pixels to the closest object boundary. For instance, each pixel in the subset of pixels may determine a distance to each pixel in the group of pixels associated with the object boundary. Then the lowest distance determined from the calculation may be used to assign the respective distance to each pixel in the subset of pixels.

The deep object feature representation can provide an embedded representation generated by mapping one or more pixel values for each pixel in the subset of pixels to a different dimensional space. Aspects of the different dimensional space can include clustering pixels such that pixels of the same instance (e.g., object or background) are closer together in the embedded space. As one example, the subset of pixels can be mapped to a higher dimensional space based on features such as pixel proximity to other pixels having similar color, intensity or other attributes of the pixel. More particularly, example machine-learned models may include one or more convolutional neural networks that can pass through the subset of pixels to extract both local and global features of the subset of pixels.

After generating the truncated signed distance function initialization and the deep object feature representation, the example implementation can iteratively update the truncated signed distance function initialization based at least in part on the deep object feature representation. In particular, the method can include optimizing an energy function over a number of iterations. The energy function can be defined to include one or more terms defining a partitioning/clustering of pixels associated with the object, pixels associated with the background or both based at least in part on the deep object feature representation. Further the energy function can base the clustering of pixels relative to the initial truncated signed distance function or a current iteration of the truncated signed distance function. Since, the TSDF provides a signed distance to the predicted object boundary, any values that are zero can be considered to represent the object boundary, thus partitioning the image into at least two regions: a first region associated with the object and a second region associated with background.

During optimization, the initial TSDF can be updated at each iteration to generate a current TSDF representing a current prediction for the object boundary. For some implementations, the energy function can include additional terms that are updated at each iteration. Thus, optimization can include a multivariate optimization of one or more parameters associated with the clustering of pixels and/or the boundary defining the region of pixels associated with the object and the region of pixels associated with the background.

The example method can generate a final TSDF after completing the iterative optimization, and the final TSDF can be used to generate the segmentation mask. As an example, the final TSDF can be used to extract pixels associated with certain distance values (e.g., positive values) using a function (e.g., the Heaviside function). These pixels can be associated with an image location (e.g., an x,y-coordinate, array position, or both) based on the image data format and the corresponding pixel values (e.g., RGB color) for the location adjusted to provide an instance segmentation mask.

Another aspect of example methods for performing instance segmentation can include an additional head (e.g., a third head) configured to generate an object localization and or an object classification for each of one or more objects detected in the image. The object localization can provide a region of pixels (e.g., the subset pixels for which the TSDF initialization is determined) that can optionally be used in part to govern outputs of the one or more heads of the machine-learned model. Similarly, the object classification can provide a label (e.g., a car, a person, a building, etc.) for each of one or more objects detected in the image. The label may also be used in part to govern outputs of the one or more heads such as determining the TSDF initialization based at least in part on the object classification.

Since, the object localization and/or classification may be used at least in part to determine the outputs of other machine-learned heads, in certain implementations, the object localization and/or classification may be determined as part of a backbone of the machine-learned model, so that the information can be generated prior to determining the output of certain heads of the machine-learned model (e.g., the TSDF initialization head and/or the deep object feature representation head).

Further, certain implementations according to the disclosure may include a machine-learned model having another head (e.g., a fourth head). The fourth head can be configured to determine one or more hyperparameters. The hyperparameters may in some instances be based at least in part on the label associated with the object. Further, as discussed, each of the one or more hyperparameters can be applied to terms of the energy function (e.g., as weights). Thus, as an example, the hyperparameters may include weights for each of the distance terms in the energy function.

In some implementations, the energy function can include at least a modified Chan-Vese level set segmentation. For Chan-Vese level set segmentation, the ground-truth pixel values (e.g., pixel intensities) are used to perform optimization. Instead, for these implementations, the modified Chan-Vese level set segmentation substitutes pixel intensity values for the deep object feature representation. The mixture of features from energy optimization models and machine-learned modes unexpectedly yields state of the art results which provide an improvement over existing segmentation models.

To further illustrate aspects of example implementations according to the disclosure, one example of defining an energy function can include:

$\begin{matrix} {{{E_{m}\left( {\varphi,c_{1},c_{2}} \right)} = {{{\lambda_{1}\left( r_{m} \right)}{\int_{\Omega_{m}}{{{{{F\left( r_{m} \right)}(x)} - c_{1}}}^{2}{H\left( {\varphi (x)} \right)}d\; x}}} + \ {{\lambda_{2}\left( r_{m} \right)}{\int_{\Omega_{m}}{{{{{F\left( r_{m} \right)}(x)} - c_{2}}}^{2}\left( {1 - {H\left( {\varphi (x)} \right)}} \right)d\; x}}} + {{\mu \left( r_{m} \right)}{\int_{\Omega_{m}}{\delta \text{?}\left( {\varphi (x)} \right){{\nabla{\varphi (x)}}}d\; x}}}}}{\text{?}\text{indicates text missing or illegible when filed}}} & (8) \end{matrix}$

Each of the parameters can be defined as follows: the initial TSDF ϕ₀(r_(m)), the set of hyperparameters {μ(r_(m)), λ₁ (r_(m)), λ₂ (r_(m)), ε_(1:N) (r_(m)), Δt_(1:M) (r_(m))}, and the Chan-Vese feature map F(r_(m)). Further each of these parameters can be determined based on the region of interest (r_(m)) or as a function of r_(m), so that the energy function E_(m) can be optimized for each r_(m) (e.g., each object).

Note that the integration is over the image subset Ω_(m)⊂Ω corresponding to r_(m). Alternating optimization can be performed on ϕ (the current TSDF) at each iteration and c1, c2. In particular, the ϕ update step can be performed as:

$\begin{matrix} {\mspace{79mu} {{\varphi_{n} = {\varphi_{n - 1} + {\Delta \; {t_{n}\left( r_{m} \right)}\frac{\partial{\varphi \left( {\text{?}\left( r_{m} \right)} \right)}}{\partial t}\mspace{14mu} {for}}}}\mspace{79mu} {{n = 1},\ldots \mspace{14mu},{N\mspace{14mu} {as}\mspace{14mu} a\mspace{14mu} {set}\mspace{14mu} {of}\mspace{14mu} {feedforward}\mspace{14mu} {layers}\mspace{14mu} {with}}}}} & (9) \\ {{\frac{\partial{\varphi \left( {\text{?}\left( r_{m} \right)} \right)}}{\partial t} = {\delta \text{?}_{(r_{m})}(\varphi)\left( {{{\mu \left( r_{m} \right)}{{div}\left( \frac{\nabla\varphi}{{\nabla{\varphi (x)}}} \right)}} - {{\lambda_{1}\left( r_{m} \right)}\left( {{F\left( r_{m} \right)} - c_{1}} \right)^{2}} + {{\lambda_{2}\left( r_{m} \right)}\left( {{F\left( r_{m} \right)} - c_{2}} \right)^{2}}} \right)}}{\text{?}\text{indicates text missing or illegible when filed}}} & (10) \end{matrix}$

At each update step, the constants c1 and c2 can have closed-form updates as:

$\begin{matrix} {{{c_{1}(\varphi)} = \frac{\int_{\Omega_{m}}{{F\left( r_{m} \right)}(x){H\left( {\varphi (x)} \right)}d\; x}}{\int_{\Omega_{m}}{H\left( {\varphi (x)} \right)d\; x}}}{{c_{2}(\varphi)} = \frac{\int_{\Omega_{m}}{{F\left( r_{m} \right)}(x)\left( {1 - {H\left( {\varphi (x)} \right)}} \right)d\; x}}{\int_{\Omega_{m}}{\left( {1 - {H\left( {\varphi (x)} \right)}} \right)d\; x}}}} & (11) \end{matrix}$

As one example learning method, a multi-headed machine-learned model can be trained jointly in an end-to-end manner as the Mask R-CNN backbone, the three extra heads (initial TSDF, hyperparameters, and deep learned features), and the deep Chan-Vese recurrent network can be defined to be fully differentiable. In particular, the standard regression and cross-entropy losses for the bounding box and classification components of both the region proposal network (RPN) and the detection/classification heads of the backbone. For training the TSDF outputs of the initial TSDF head and the deep Chan-Vese system, the following example loss can be applied which is a mix of l₁ and binary cross-entropy (BCE):

_(tsdf)(ϕ,ϕ_(GT) ,M _(GT))=∥ϕ−ϕ_(GT)∥₁ +BCE(H _(ε)(ϕ),M _(GT))  (12)

While certain aspects are described herein as computer implemented methods, it should be understood that the present disclosure also include computing systems and/or computer readable media that collectively store or can communicate instructions that when executed by a computer processor can cause the processor to perform one or more operations as disclosed in methods herein.

Further, example computer-implemented methods and systems may be used in a variety of computer-vision applications including by not limited to self-driving or autonomous vehicles. For instance, an example implementation according to the present disclosure can include an autonomous vehicle having a computing system configured to provide one or more outputs for modifying a control operation of the vehicle. The computing system can include one or more non-transitory computer-readable media for performing instance segmentation using a machine-learned segmentation model according to example methods disclosed herein. Based at least in part on outputs of the machine-learned segmentation model (e.g., a final TSDF, a segmentation mas, an object localization, etc.) the vehicle can determine an adjustment (e.g., applying the brakes to reduce speed, adjusting the steering to change direction, adjusting engine performance to increase speed, activating one or more signals on a driver interface of the vehicle, etc.) to modify operation of the vehicle, in lieu of receiving a human input.

Example implementations in accordance with the present disclosure can be used to generate a variety of outputs. For instance, the final TSDF can be used to create a modified image by adjusting the pixel values associated with a zero TSDF value or having an absolute value less than a threshold number of pixels. In this manner, an estimated boundary of the object can be extracted. Additionally, the threshold boundary can be combined with additional sensor information such as LIDAR, RADAR, or similar detectors to map the pixel values to physical distances. In this manner, example machine-learned segmentation model outputs can be mapped to physical values for determining an adjustment to mechanical components in manufacturing and/or driving applications.

With reference now to the figures, example embodiments of the present disclosure will be discussed in further detail.

FIG. 1 illustrates an example vehicle computing system 110 according to example embodiments of the present disclosure. The vehicle computing system 110 can be associated with a vehicle 102. The vehicle computing system 110 can be located onboard (e.g., included on and/or within) the vehicle 102.

The vehicle 102 incorporating the vehicle computing system 110 can be various types of vehicles. In some implementations, the vehicle 102 can be an autonomous vehicle. For instance, the vehicle 102 can be a ground-based autonomous vehicle such as an autonomous car, autonomous truck, autonomous bus, etc. The vehicle 102 can be an air-based autonomous vehicle (e.g., airplane, helicopter, bike, scooter, or other aircraft) or other types of vehicles (e.g., watercraft, etc.). The vehicle 102 can drive, navigate, operate, etc. with minimal and/or no interaction from a human operator 106 (e.g., driver). An operator 106 (also referred to as a vehicle operator) can be included in the vehicle 102 and/or remote from the vehicle 102. Moreover, in some implementations, the vehicle 102 can be a non-autonomous vehicle. The operator 106 can be associated with the vehicle 102 to take manual control of the vehicle, if necessary. For instance, in a testing scenario, a vehicle 102 can be periodically tested with controlled faults that can be injected into an autonomous vehicle's autonomy system 130. This can help the vehicle's response to certain scenarios. A vehicle operator 106 can be located within the vehicle 102 and/or remote from the vehicle 102 to take control of the vehicle 102 (e.g., in the event the fault results in the vehicle exiting from a fully autonomous mode in the testing environment).

The vehicle 102 can be configured to operate in a plurality of operating modes. For example, the vehicle 102 can be configured to operate in a fully autonomous (e.g., self-driving) operating mode in which the vehicle 102 is controllable without user input (e.g., can drive and navigate with no input from a vehicle operator present in the vehicle 102 and/or remote from the vehicle 102). The vehicle 102 can operate in a semi-autonomous operating mode in which the vehicle 105 can operate with some input from a vehicle operator present in the vehicle 102 (and/or a human operator that is remote from the vehicle 102). The vehicle 102 can enter into a manual operating mode in which the vehicle 102 is fully controllable by a vehicle operator 106 (e.g., human driver, pilot, etc.) and can be prohibited and/or disabled (e.g., temporary, permanently, etc.) from performing autonomous navigation (e.g., autonomous driving). In some implementations, the vehicle 102 can implement vehicle operating assistance technology (e.g., collision mitigation system, power assist steering, etc.) while in the manual operating mode to help assist the vehicle operator 106 of the vehicle 102. For example, a collision mitigation system can utilize information concerning vehicle trajectories within the vehicle's surrounding environment to help an operator avoid collisions even when in manual mode.

The operating modes of the vehicle 102 can be stored in a memory onboard the vehicle 102. For example, the operating modes can be defined by an operating mode data structure (e.g., rule, list, table, etc.) that indicates one or more operating parameters for the vehicle 102, while in the particular operating mode. For example, an operating mode data structure can indicate that the vehicle 102 is to autonomously plan its motion when in the fully autonomous operating mode. The vehicle computing system 110 can access the memory when implementing an operating mode.

The operating mode of the vehicle 102 can be adjusted in a variety of manners. For example, the operating mode of the vehicle 102 can be selected remotely, off-board the vehicle 105. For example, a remote computing system (e.g., of a vehicle provider and/or service entity associated with the vehicle 102) can communicate data to the vehicle 102 instructing the vehicle 102 to enter into, exit from, maintain, etc. an operating mode. For example, in some implementations, the remote computing system can be an operations computing system 180, as disclosed herein. By way of example, such data communicated to a vehicle 102 by the operations computing system 180 can instruct the vehicle 102 to enter into the fully autonomous operating mode. In some implementations, the operating mode of the vehicle 102 can be set onboard and/or near the vehicle 102. For example, the vehicle computing system 100 can automatically determine when and where the vehicle 102 is to enter, change, maintain, etc. a particular operating mode (e.g., without user input). Additionally, or alternatively, the operating mode of the vehicle 102 can be manually selected via one or more interfaces located onboard the vehicle 105 (e.g., key switch, button, etc.) and/or associated with a computing device proximate to the vehicle 105 (e.g., a tablet operated by authorized personnel located near the vehicle 102). In some implementations, the operating mode of the vehicle 102 can be adjusted by manipulating a series of interfaces in a particular order to cause the vehicle 102 to enter into a particular operating mode.

The vehicle computing system 110 can include one or more computing devices located onboard the vehicle 102. For example, the computing device(s) can be located on and/or within the vehicle 102. The computing device(s) can include various components for performing various operations and functions. For instance, the computing device(s) can include one or more processors and one or more tangible, non-transitory, computer readable media (e.g., memory devices, etc.). The one or more tangible, non-transitory, computer readable media can store instructions that when executed by the one or more processors cause the vehicle 102 (e.g., its computing system, one or more processors, etc.) to perform operations and functions, such as those described herein for generating image segmentation masks and/or generating other outputs using example machine-learned models disclosed herein such as the final TSDF, object localizations, etc.

The vehicle 102 can include a communications system 112 configured to allow the vehicle computing system 110 (and its computing device(s)) to communicate with other computing devices. The vehicle computing system 110 can use the communications system 112 to communicate with one or more computing device(s) that are remote from the vehicle 102 over one or more networks (e.g., via one or more wireless signal connections). For example, the communications system 112 can allow the vehicle computing system 110 to communicate with an operations computing system 180. By way of example, the operations computing system 180 can include one or more remote servers communicatively linked to the vehicle computing system 110. In some implementations, the communications system 112 can allow communication among one or more of the system(s) onboard the vehicle 102. The communications system 112 can include any suitable components for interfacing with one or more network(s), including, for example, transmitters, receivers, ports, controllers, antennas, and/or other suitable components that can help facilitate communication.

As shown in FIG. 1, the vehicle 102 can include one or more vehicle sensor(s) 116, an autonomy computing system 130, one or more vehicle control systems 120, one or more positioning systems 114, and other systems, as described herein. One or more of these systems can be configured to communicate with one another via a communication channel. The communication channel can include one or more data buses (e.g., controller area network (CAN)), onboard diagnostics connector (e.g., OBD-II), and/or a combination of wired and/or wireless communication links. The onboard systems can send and/or receive data, messages, signals, etc. amongst one another via the communication channel.

The vehicle sensor(s) 116 can be configured to acquire sensor data 118. This can include sensor data associated with the surrounding environment of the vehicle 102. For instance, the sensor data 118 can include two-dimensional data depicting the surrounding environment of the vehicle 102. In addition, or alternatively, the sensor data 118 can include three-dimensional data associated with the surrounding environment of the vehicle 102. For example, the sensor(s) 116 can be configured to acquire image(s) and/or other two- or three-dimensional data within a field of view of one or more of the vehicle sensor(s) 116. The vehicle sensor(s) 116 can include a Light Detection and Ranging (LIDAR) system, a Radio Detection and Ranging (RADAR) system, one or more cameras (e.g., visible spectrum cameras, infrared cameras, etc.), motion sensors, and/or other types of two-dimensional and/or three-dimensional capturing devices. The sensor data 118 can include image data, radar data, LIDAR data, and/or other data acquired by the vehicle sensor(s) 116. For example, the vehicle sensor(s) 116 can include a front-facing RGB camera mounted on top of the vehicle 102 and the sensor data 118 can include an RGB image depicting the surrounding environment of the vehicle 102. In addition, or alternatively, the vehicle sensor(s) 116 can include one or more LIDAR sensor(s) and the sensor data 118 can include one or more sparse sets of LIDAR measurements. Moreover, the vehicle 102 can also include other sensors configured to acquire data associated with the vehicle 102. For example, the vehicle 102 can include inertial measurement unit(s), wheel odometry devices, and/or other sensors. In some implementations, the sensor data 118 and/or map data 132 can be processed to select one or more target trajectories for traversing within the surrounding environment of the vehicle 102.

In addition to the sensor data 118, the autonomy computing system 130 can retrieve or otherwise obtain map data 132. The map data 132 can provide static world representations about the surrounding environment of the vehicle 102. For example, in some implementations, a vehicle 102 can exploit prior knowledge about the static world by building very detailed maps (HD maps) that represent not only the roads, buildings, bridges, and landmarks, but also traffic lanes, signs, and lights to centimeter accurate three-dimensional representations. More particularly, map data 132 can include information regarding: the identity and location of different roadways, road segments, buildings, or other items or objects (e.g., lampposts, crosswalks, curbing, etc.); the location and directions of traffic lanes (e.g., the location and direction of a parking lane, a turning lane, a bicycle lane, or other lanes within a particular roadway or other travel way and/or one or more boundary markings associated therewith); traffic control data (e.g., the location and instructions of signage, traffic lights, or other traffic control devices); the location of obstructions (e.g., roadwork, accidents, etc.); data indicative of events (e.g., scheduled concerts, parades, etc.); and/or any other data that provides information that assists the vehicle 102 in comprehending and perceiving its surrounding environment and its relationship thereto.

The vehicle 102 can include a positioning system 114. The positioning system 114 can determine a current position of the vehicle 102. The positioning system 114 can be any device or circuitry for analyzing the position of the vehicle 102. For example, the positioning system 114 can determine a position by using one or more of inertial sensors (e.g., inertial measurement unit(s), etc.), a satellite positioning system, based on IP address, by using triangulation and/or proximity to network access points or other network components (e.g., cellular towers, WiFi access points, etc.) and/or other suitable techniques. The position of the vehicle 102 can be used by various systems of the vehicle computing system 110 and/or provided to a remote computing system. For example, the map data 132 can provide the vehicle 102 relative positions of the elements of a surrounding environment of the vehicle 102. The vehicle 102 can identify its position within the surrounding environment (e.g., across six axes, etc.) based at least in part on the map data 132. For example, the vehicle computing system 110 can process the sensor data 118 (e.g., LIDAR data, camera data, etc.) to match it to a map of the surrounding environment to get an understanding of the vehicle's position within that environment.

The autonomy computing system 130 can include a perception system 140, a prediction system 150, a motion planning system 160, and/or other systems that cooperate to perceive the surrounding environment of the vehicle 102 and determine a motion plan for controlling the motion of the vehicle 102 accordingly.

For example, the autonomy computing system 130 can obtain the sensor data 118 from the vehicle sensor(s) 116, process the sensor data 118 (and/or other data) to perceive its surrounding environment, predict the motion of objects within the surrounding environment, and generate an appropriate motion plan through such surrounding environment. The autonomy computing system 130 can communicate with the one or more vehicle control systems 120 to operate the vehicle 102 according to the motion plan.

The vehicle computing system 100 (e.g., the autonomy computing system 130) can identify one or more objects that are proximate to the vehicle 102 based at least in part on the sensor data 118 and/or the map data 132. For example, the vehicle computing system 110 (e.g., the perception system 140) can process the sensor data 118, the map data 132, etc. to obtain perception data 142. The vehicle computing system 110 can generate perception data 142 that is indicative of one or more states (e.g., current and/or past state(s)) of a plurality of objects that are within a surrounding environment of the vehicle 102. For example, the perception data 142 for each object can describe (e.g., for a given time, time period) an estimate of the object's: current and/or past location (also referred to as position); current and/or past speed/velocity; current and/or past acceleration; current and/or past heading; current and/or past orientation; size/footprint (e.g., as represented by a bounding shape); class (e.g., pedestrian class vs. vehicle class vs. bicycle class); the uncertainties associated therewith, and/or other state information. The perception system 140 can provide the perception data 142 to the prediction system 150, the motion planning system 160, and/or other system(s).

The prediction system 150 can be configured to predict a motion of the object(s) within the surrounding environment of the vehicle 102. For instance, the prediction system 150 can generate prediction data 152 associated with such object(s). The prediction data 152 can be indicative of one or more predicted future locations of each respective object. For example, the prediction system 150 can determine a predicted motion trajectory along which a respective object is predicted to travel over time. A predicted motion trajectory can be indicative of a path that the object is predicted to traverse and an associated timing with which the object is predicted to travel along the path. The predicted path can include and/or be made up of a plurality of way points. In some implementations, the prediction data 152 can be indicative of the speed and/or acceleration at which the respective object is predicted to travel along its associated predicted motion trajectory. The prediction system 150 can output the prediction data 152 (e.g., indicative of one or more of the predicted motion trajectories) to the motion planning system 160.

The vehicle computing system 110 (e.g., the motion planning system 160) can determine a motion plan 162 for the vehicle 102 based at least in part on the perception data 142, the prediction data 152, and/or other data.

A motion plan 162 can include vehicle actions (e.g., planned vehicle trajectories, speed(s), acceleration(s), other actions, etc.) with respect to one or more of the objects within the surrounding environment of the vehicle 102 as well as the objects' predicted movements. For instance, the motion planning system 160 can implement an optimization algorithm, model, etc. that considers cost data associated with a vehicle action as well as other objective functions (e.g., cost functions based on speed limits, traffic lights, etc.), if any, to determine optimized variables that make up the motion plan 162. The motion planning system 160 can determine that the vehicle 102 can perform a certain action (e.g., pass an object, etc.) without increasing the potential risk to the vehicle 102 and/or violating any traffic laws (e.g., speed limits, lane boundaries, signage, etc.). For instance, the motion planning system 160 can evaluate one or more of the predicted motion trajectories of one or more objects during its cost data analysis as it determines an optimized vehicle trajectory through the surrounding environment. The motion planning system 160 can generate cost data associated with such trajectories. In some implementations, one or more of the predicted motion trajectories may not ultimately change the motion of the vehicle 102 (e.g., due to an overriding factor). In some implementations, the motion plan 162 may define the vehicle's motion such that the vehicle 102 avoids the object(s), reduces speed to give more leeway to one or more of the object(s), proceeds cautiously, performs a stopping action, etc.

The motion planning system 160 can be configured to continuously update the vehicle's motion plan 162 and a corresponding planned vehicle motion trajectory. For example, in some implementations, the motion planning system 160 can generate new motion plan(s) for the vehicle 102 (e.g., multiple times per second). Each new motion plan can describe a motion of the vehicle 102 over the next planning period (e.g., next several seconds). Moreover, a new motion plan may include a new planned vehicle motion trajectory. Thus, in some implementations, the motion planning system 160 can continuously operate to revise or otherwise generate a short-term motion plan based on the currently available data. Once the optimization planner has identified the optimal motion plan (or some other iterative break occurs), the optimal motion plan (and the planned motion trajectory) can be selected and executed by the vehicle 102.

The vehicle computing system 110 can cause the vehicle 102 to initiate a motion control in accordance with at least a portion of the motion plan 162. A motion control can be an operation, action, etc. that is associated with controlling the motion of the vehicle. For instance, the motion plan 162 can be provided to the vehicle control system(s) 120 of the vehicle 102. The vehicle control system(s) 120 can be associated with a vehicle controller (e.g., including a vehicle interface) that is configured to implement the motion plan 162. The vehicle controller can, for example, translate the motion plan into instructions for the appropriate vehicle control component (e.g., acceleration control, brake control, steering control, etc.). By way of example, the vehicle controller can translate a determined motion plan 162 into instructions to adjust the steering of the vehicle 102 “X” degrees, apply a certain magnitude of braking force, etc. The vehicle controller (e.g., the vehicle interface) can help facilitate the responsible vehicle control (e.g., braking control system, steering control system, acceleration control system, etc.) to execute the instructions and implement the motion plan 162 (e.g., by sending control signal(s), making the translated plan available, etc.). This can allow the vehicle 102 to autonomously travel within the vehicle's surrounding environment.

As shown in FIG. 1, the vehicle computing system 110 can include an image segmentation system 166 that is configured to generate a segmentation mask based at least in part on receiving imagery of an area including one or more objects (e.g., people, cares, buildings, animals, etc.) The image segmentation system 166 can include one or more machine-learned models configured to process image data defined by a plurality of pixels. For example, the machine learned model(s) can be configured to receive or otherwise obtain information from the sensor(s) 116 such as one or more images each including a plurality of pixels. The machine-learned image segmentation model can utilize multiple heads to extract local and global features of the images to generate an initial prediction of a boundary for one or more objects identified in the image. The initial boundary can be determined based on an initial truncated signed distance function (TSDF). Additionally, the model can include heads for extracting features from the data to optimize the initial TSDF to better refine the predicted boundary. Repeating this process for each object identified in the image can be used to identify the pixels associated with a certain object and pixels associated with background. Further, this information may be combined with other sensor data such as LIDAR or RADAR to determine distances associated with one or more of the objects. In particular, certain implementations may use the image segmentation system 164 to determine outputs that can be used at least in part by autonomous vehicle 102 to modify the autonomy system 130 of the vehicle 102 and determine an adjustment to the vehicle control system(s) 120.

Although many examples are described herein with respect to autonomous vehicles, the disclosed technology is not limited to autonomous vehicles. In fact, any object capable of collecting or processing sensor data such as image data that contained one or more objects can utilize the technology described herein for generating a segmentation mask. For example, a non-autonomous vehicle may utilize aspects of the present disclosure to generate a target trajectory for an operator of the non-autonomous vehicle, notify the vehicle operator of the target trajectory, and take precautionary measures based on the identified target trajectory. Likewise, a smart phone with one or more cameras, a robot, augmented reality system, and/or another type of system can utilize aspects of the present disclosure to generate target trajectories.

FIG. 2 depicts an example architecture as well as example process flows for an example machine-learned segmentation model according to the present disclosure. As illustrated, an example segmentation model 204 can be configured (e.g., trained) to take an image 202 comprising a plurality of pixels as an input. Based on the image 202, the model 204 can determine various outputs such as a TSDF initial 206, deep features 208, and, in some implementations, hyperparameters 210 and/or object class and localization 212. Each of these outputs can be used to define an energy function 214 such as a modified Chan-Vese function that includes terms for grouping pixels as associated with an object or background based on a current iteration of the TSDF.

As illustrated, one example aspect of certain energy functions can include at least two distance terms for grouping attributes of pixels associated with the object and pixels associated with background. More particularly, the energy function can include a first distance term (D1) 214 a defining a distance calculation between the deep object feature representation predicted by the machine learned model (F) and a constant (e.g., c₁) to denote pixels representing the object, by associating (e.g., multiplying) this difference with a first area (e.g., 1-ph₀) for a region of interest. The energy function can also include a second distance term (D1) 214 b defining a distance calculation between deep object feature representation predicted by the machine-learned model (F) and a second constant (e.g., c2) to denote pixels that do not represent the object (e.g., background), by associating (e.g., multiplying) this difference with the remainder of the region of interest (e.g., ph₀). Since the TSDF can be used to determine a predicted object boundary, the region of interest can be determined based at least in part on the truncated signed distance function (ph₀) such that the region of interest and the remainder of the region of interest can be indexed to pixels associated with the object (e.g., pixels within the TSDF and/or pixels having a positive TSDF value) or associated with background (e.g., pixels outside of the TSDF and/or pixels having a negative TSDF value). In some implementations, the energy function can include additional terms 214 c such as a smoothness term based on the gradient of the TSDF.

The energy function can be optimized using an optimizer 216 to determine updated parameters 218 of the energy function 214. For example, the initial TSDF (Pho) can be updated over a number of iterations to determine a current TSDF (Ph_(i), where i denotes the iteration number). As another example, the grouping constants c₁ and c₂ can also be updated at each iteration to improve the features clustering relative to the deep features determined by the machine-learned segmentation model. In some implementations the optimizer 216 can be configured as a parameter-free recurrent neural network. After optimization over the number of iterations, the current TSDF is considered the final TSDF 220 and can be used to extract the boundary of the object(s) to determine a segmentation mask 222 for the image.

To further illustrate aspects of example implementations according to the disclosure, one example energy function 214 can include:

$\begin{matrix} {{{E_{m}\left( {\varphi,c_{1},c_{2}} \right)} = {{{\lambda_{1}\left( r_{m} \right)}{\int_{\Omega_{m}}{{{{{F\left( r_{m} \right)}(x)} - c_{1}}}^{2}{H\left( {\varphi (x)} \right)}d\; x}}} + \ {{\lambda_{2}\left( r_{m} \right)}{\int_{\Omega_{m}}{{{{{F\left( r_{m} \right)}(x)} - c_{2}}}^{2}\left( {1 - {H\left( {\varphi (x)} \right)}} \right)d\; x}}} + {{\mu \left( r_{m} \right)}{\int_{\Omega_{m}}{\delta \text{?}\left( {\varphi (x)} \right){{\nabla{\varphi (x)}}}d\; x}}}}}{\text{?}\text{indicates text missing or illegible when filed}}} & (8) \end{matrix}$

Each of the parameters can be defined as follows: the initial TSDF ϕ₀(r_(m)), the set of hyperparameters{μ(r_(m)), λ₁ (r_(m)), λ₂ (r_(m)), ε_(1:N) (r_(m)), Δt_(1:M) (r_(m))}, and the Chan-Vese feature map F(r_(m)). Further each of these parameters can be determined based on the region of interest (r_(m)) or as a function of r_(m), so that the energy function E_(m) can be optimized for each r_(m) (e.g., each object).

Note that the integration is over the image subset Ω_(m)⊂Ω corresponding to r_(m). Alternating optimization can be performed on ϕ (the current TSDF) at each iteration and c1, c2. In particular, the ϕ update step can be performed as:

$\begin{matrix} {\mspace{79mu} {{\varphi_{n} = {\varphi_{n - 1} + {\Delta \; {t_{n}\left( r_{m} \right)}\frac{\partial{\varphi \left( {\text{?}\left( r_{m} \right)} \right)}}{\partial t}\mspace{14mu} {for}}}}\mspace{79mu} {{n = 1},\ldots \mspace{14mu},{N\mspace{14mu} {as}\mspace{14mu} a\mspace{14mu} {set}\mspace{14mu} {of}\mspace{14mu} {feedforward}\mspace{14mu} {layers}\mspace{14mu} {with}}}}} & (9) \\ {{\frac{\partial{\varphi \left( {\text{?}\left( r_{m} \right)} \right)}}{\partial t} = {\delta \text{?}_{(r_{m})}(\varphi)\left( {{{\mu \left( r_{m} \right)}{{div}\left( \frac{\nabla\varphi}{{\nabla{\varphi (x)}}} \right)}} - {{\lambda_{1}\left( r_{m} \right)}\left( {{F\left( r_{m} \right)} - c_{1}} \right)^{2}} + {{\lambda_{2}\left( r_{m} \right)}\left( {{F\left( r_{m} \right)} - c_{2}} \right)^{2}}} \right)}}{\text{?}\text{indicates text missing or illegible when filed}}} & (10) \end{matrix}$

At each update step, the constants c1 and c2 can have closed-form updates as:

$\begin{matrix} {{{c_{1}(\varphi)} = \frac{\int_{\Omega_{m}}{{F\left( r_{m} \right)}(x){H\left( {\varphi (x)} \right)}d\; x}}{\int_{\Omega_{m}}{H\left( {\varphi (x)} \right)d\; x}}}{{c_{2}(\varphi)} = \frac{\int_{\Omega_{m}}{{F\left( r_{m} \right)}(x)\left( {1 - {H\left( {\varphi (x)} \right)}} \right)d\; x}}{\int_{\Omega_{m}}{\left( {1 - {H\left( {\varphi (x)} \right)}} \right)d\; x}}}} & (11) \end{matrix}$

As one example learning method, the multi-headed machine-learned model can be trained jointly in an end-to-end manner as the Mask R-CNN backbone of model 204, the three extra heads (initial TSDF 206, hyperparameters 210, and deep learned features 208), and the deep Chan-Vese recurrent network 216 can be defined to be fully differentiable. In particular, the standard regression and cross-entropy losses for the bounding box and classification components of both the RPN and the detection/classification heads of the backbone portion of the model 204. For training, the TSDF outputs of the initial TSDF head 206 and the deep Chan-Vese system, the following example loss can be applied which is a mix of el and binary cross-entropy BCE:

_(tsdf)(ϕ,ϕ_(GT) ,M _(GT))=∥ϕ−ϕ_(GT)∥₁ +BCE(H _(ε)(ϕ),M _(GT))  (12)

FIG. 3 depicts a block diagram of an example computing system 1000 according to example embodiments of the present disclosure. The example computing system 1000 includes a computing system 1002 and a machine learning computing system 1030 that are communicatively coupled over a network 1080.

In some implementations, the computing system 1002 can perform various operations as part of motion planning for an autonomous vehicle. For example, computing system 1002 can receive sensor data map data associated with an environment external to an autonomous vehicle and process the sensor data and the map data to generate a target trajectory for the autonomous vehicle, as part of autonomous vehicle operations. In some implementations, the computing system 1002 can be included in an autonomous vehicle. For example, the computing system 1002 can be on-board the autonomous vehicle. In some embodiments, computing system 1002 can be used to implement vehicle computing system 110. In other implementations, the computing system 1002 is not located on-board the autonomous vehicle. For example, the computing system 1002 can operate offline to obtain sensor data and perform target trajectory generation. The computing system 1002 can include one or more distinct physical computing devices.

The computing system 1002 includes one or more processors 1012 and a memory 1014. The one or more processors 1012 can be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, a FPGA, a controller, a microcontroller, etc.) and can be one processor or a plurality of processors that are operatively connected. The memory 1014 can include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, one or more memory devices, flash memory devices, etc., and combinations thereof.

The memory 1014 can store information that can be accessed by the one or more processors 1012. For instance, the memory 1014 (e.g., one or more non-transitory computer-readable storage mediums, memory devices) can store data 1016 that can be obtained, received, accessed, written, manipulated, created, and/or stored. The data 1016 can include, for instance, map data, image or other sensor data captured by one or more sensors, machine-learned models, etc. as described herein. In some implementations, the computing system 1002 can obtain data from one or more memory device(s) that are remote from the computing system 1002.

The memory 1014 can also store computer-readable instructions 1018 that can be executed by the one or more processors 1012. The instructions 1018 can be software written in any suitable programming language or can be implemented in hardware. Additionally, or alternatively, the instructions 1018 can be executed in logically and/or virtually separate threads on processor(s) 1012.

For example, the memory 1014 can store instructions 1018 that when executed by the one or more processors 1012 cause the one or more processors 1012 to perform any of the operations and/or functions described herein, including, for example, generating motion plans including target trajectories for an autonomous vehicle, etc.

According to an aspect of the present disclosure, the computing system 1002 can store or include one or more machine-learned models 1010. As examples, the machine-learned models 1010 can be or can otherwise include various machine-learned models such as, for example, neural networks (e.g., deep neural networks or other types of models including linear models and/or non-linear models. Example neural networks include feed-forward neural networks, recurrent neural networks (e.g., long short-term memory recurrent neural networks), convolutional neural networks, or other forms of neural networks.

In some implementations, the computing system 1002 can receive the one or more machine-learned models 1010 from the machine learning computing system 1030 over network 1080 and can store the one or more machine-learned models 1010 in the memory 1014. The computing system 1002 can then use or otherwise implement the one or more machine-learned models 1010 (e.g., by processor(s) 1012). In particular, the computing system 1002 can implement the machine-learned model(s) 1010 to generate uncertainty data for object detections, predictions, and motion plan generation based on sensor data.

The machine learning computing system 1030 includes one or more processors 1032 and a memory 1034. The one or more processors 1032 can be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, a FPGA, a controller, a microcontroller, etc.) and can be one processor or a plurality of processors that are operatively connected. The memory 1034 can include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, one or more memory devices, flash memory devices, etc., and combinations thereof. In some embodiments, machine learning computing system 1030 can be used to implement vehicle computing system 110.

The memory 1034 can store information that can be accessed by the one or more processors 1032. For instance, the memory 1034 (e.g., one or more non-transitory computer-readable storage mediums, memory devices) can store data 1036 that can be obtained, received, accessed, written, manipulated, created, and/or stored. The data 1036 can include, for instance, machine-learned models, sensor data, and map data as described herein. In some implementations, the machine learning computing system 1030 can obtain data from one or more memory device(s) that are remote from the machine learning computing system 1030.

The memory 1034 can also store computer-readable instructions 1038 that can be executed by the one or more processors 1032. The instructions 1038 can be software written in any suitable programming language or can be implemented in hardware. Additionally, or alternatively, the instructions 1038 can be executed in logically and/or virtually separate threads on processor(s) 1032.

For example, the memory 1034 can store instructions 1038 that when executed by the one or more processors 1032 cause the one or more processors 1032 to perform any of the operations and/or functions described herein, including, for example, generating motion plans including target trajectories for an autonomous vehicle, and controlling an autonomous vehicle based on the target trajectories.

In some implementations, the machine learning computing system 1030 includes one or more server computing devices. If the machine learning computing system 1030 includes multiple server computing devices, such server computing devices can operate according to various computing architectures, including, for example, sequential computing architectures, parallel computing architectures, or some combination thereof.

In addition or alternatively to the machine-learned model(s) 1010 at the computing system 1002, the machine learning computing system 1030 can include one or more machine-learned models 1040. As examples, the machine-learned models 1040 can be or can otherwise include various machine-learned models such as, for example, neural networks (e.g., deep neural networks) or other types of models including linear models and/or non-linear models. Example neural networks include feed-forward neural networks, recurrent neural networks (e.g., long short-term memory recurrent neural networks), convolutional neural networks, or other forms of neural networks.

As an example, the machine learning computing system 1030 can communicate with the computing system 1002 according to a client-server relationship. For example, the machine learning computing system 1030 can implement the machine-learned models 1040 to provide a web service to the computing system 1002. For example, the web service can generate motion plans including target trajectories in response to sensor data and/or other data received from an autonomous vehicle.

Thus, machine-learned models 1010 can be located and used at the computing system 1002 and/or machine-learned models 1040 can be located and used at the machine learning computing system 1030.

In some implementations, the machine learning computing system 1030 and/or the computing system 1002 can train the machine-learned models 1010 and/or 1040 through use of a model trainer 1060. The model trainer 1060 can train the machine-learned models 1010 and/or 1040 using one or more training or learning algorithms. One example training technique is backwards propagation of errors. In some implementations, the model trainer 1060 can perform supervised training techniques using a set of labeled training data. In other implementations, the model trainer 1060 can perform unsupervised training techniques using a set of unlabeled training data. The model trainer 1060 can perform a number of generalization techniques to improve the generalization capability of the models being trained. Generalization techniques include weight decays, dropouts, or other techniques.

In particular, the model trainer 1060 can train a machine-learned model 1010 and/or 1040 based on a set of training data 1062. The training data 1062 can include, for example, ground truth data including annotations for sensor data portions and/or vehicle state data. The model trainer 1060 can be implemented in hardware, firmware, and/or software controlling one or more processors.

In some examples, the model trainer 1060 can train a machine-learned model 1010 and/or 1040 configured to generate motion plans including target trajectories as well as intermediate representations associated with one or more of an object detection or an object prediction. In some examples, the machine-learned model 1010 and/or 1040 is trained using sensor data that has been labeled or otherwise annotated as having a correspondence to a detected object, a class of a detected object, etc. By way of example, sensor data collected in association with a particular class of object can be labeled to indicate that it corresponds to an object detection or the particular class. In some instances, the label may be a simple annotation that the sensor data corresponds to a positive training dataset.

The computing system 1002 can also include a network interface 1024 used to communicate with one or more systems or devices, including systems or devices that are remotely located from the computing system 1002. The network interface 1024 can include any circuits, components, software, etc. for communicating with one or more networks (e.g., 1080). In some implementations, the network interface 1024 can include, for example, one or more of a communications controller, receiver, transceiver, transmitter, port, conductors, software and/or hardware for communicating data. Similarly, the machine learning computing system 1030 can include a network interface 1064.

The network(s) 1080 can be any type of network or combination of networks that allows for communication between devices. In some embodiments, the network(s) can include one or more of a local area network, wide area network, the Internet, secure network, cellular network, mesh network, peer-to-peer communication link and/or some combination thereof and can include any number of wired or wireless links. Communication over the network(s) 1080 can be accomplished, for instance, via a network interface using any type of protocol, protection scheme, encoding, format, packaging, etc.

FIG. 3 illustrates one example computing system 1000 that can be used to implement the present disclosure. Other computing systems can be used as well. For example, in some implementations, the computing system 1002 can include the model trainer 1060 and the training data 1062. In such implementations, the machine-learned models 1010 can be both trained and used locally at the computing system 1002. As another example, in some implementations, the computing system 1002 is not connected to other computing systems.

In addition, components illustrated and/or discussed as being included in one of the computing systems 1002 or 1030 can instead be included in another of the computing systems 1002 or 1030. Such configurations can be implemented without deviating from the scope of the present disclosure. The use of computer-based systems allows for a great variety of possible configurations, combinations, and divisions of tasks and functionality between and among components. Computer-implemented operations can be performed on a single component or across multiple components. Computer-implemented tasks and/or operations can be performed sequentially or in parallel. Data and instructions can be stored in a single memory device or across multiple memory devices.

Computing tasks discussed herein as being performed at computing device(s) remote from the autonomous vehicle can instead be performed at the autonomous vehicle (e.g., via the vehicle computing system), or vice versa. Such configurations can be implemented without deviating from the scope of the present disclosure. The use of computer-based systems allows for a great variety of possible configurations, combinations, and divisions of tasks and functionality between and among components. Computer-implemented operations can be performed on a single component or across multiple components. Computer-implements tasks and/or operations can be performed sequentially or in parallel. Data and instructions can be stored in a single memory device or across multiple memory devices.

FIG. 4 depicts a flowchart illustrating an example method 400 for generating a segmentation mask using a machine-learned image segmentation model according to example embodiments of the present disclosure. One or more portions of method 400 (and the other methods disclosed herein) can be implemented by one or more computing devices such as, for example, one or more computing devices of vehicle computing system 100 of FIG. 1. One or more portions of method 400 can be implemented as an algorithm on the hardware components of the devices described herein (e.g., as in FIGS. 1, 3, and/or 5) to, for example, generate image segmentation masks. In example embodiments, method 400 may be performed by an image segmentation system 166 implemented using one or more computing devices of a vehicle computing system (e.g., 110).

At 402, method 400 can include obtaining image data such as an image comprising a plurality of pixels. For example, the image data can include sensor data such as a video camera that can obtain and transmit video data comprising a sequence of image frames in substantially real time. Alternatively or additionally, the image data may include stored data such as video or image frames stored locally or remotely as part of computing system memory. Thus, obtaining the image can also include accessing system files over a network such as a local area network or using a remote communications protocol.

At 404, method 400 can include providing (e.g., inputting) the image data to a machine-learned segmentation model comprising a plurality of heads, each head configured to determine a different output for a given input(s).

At 406, method 400 can include generating, by a first head of one of the heads of the machine-learned segmentation model, a truncated signed distance function initialization.

At 408, method 400 can include generating, by a second head of one of the heads of the machine-learned segmentation model, a deep feature representation.

At 410, method 400 can include updating, based at least in part on the deep object feature representation, the truncated signed distance function (TSDF) initialization by optimizing an energy function over a number of iterations. For example, in certain methods the machine-learned segmentation model can be configured to identify multiple objects present in the image data. Example implementations can include iteratively updating the TSDF initialization determined for each object detected in the image. In this manner, example implementations can determine a final TSDF for each object and each of these final TSDFs can be collected to generate an instance segmentation mask for the entire image.

At 412, method 400 can include determining an instance segmentation mask for the image based on a final TSDF generated by updating the initial TSDF over the number of iterations. For example, the final TSDF can be used to extract the boundary of the object for assigning pixels as associated with the object or associated with background. Thus, the final TSDF can be used to determine labels for pixels that can be used to create a mask.

Various means can be configured to perform the methods and processes described herein. FIG. 5 depicts an example of a computing environment including example means for performing the methods and processes described herein.

More particularly, FIG. 5 depicts an example image segmentation computing system 902 with units 904-912 for performing operations and functions according to example embodiments of the present disclosure. For example, image segmentation computing system 900 can include one or more machine-learned model unit(s) 904, one or more energy function unit(s) 906, one or more model training unit(s) 908, one or more machine-learned model data unit(s) 910, one or more energy function data unit(s) 912, and/or other means for performing the operations and functions described herein. In some implementations, one or more of the units 904-912 may be implemented separately. In some implementations, one or more of the units 904-912 may be a part of or included in one or more other units. These means can include processor(s), microprocessor(s), graphics processing unit(s), logic circuit(s), dedicated circuit(s), application-specific integrated circuit(s), programmable array logic, field-programmable gate array(s), controller(s), microcontroller(s), and/or other suitable hardware. The means can also, or alternately, include software control means implemented with a processor or logic circuitry for example. The means can include or otherwise be able to access memory such as, for example, one or more non-transitory computer-readable storage media, such as random-access memory, read-only memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, flash/other memory device(s), data registrar(s), database(s), and/or other suitable hardware.

The means can be programmed to perform one or more algorithm(s) for carrying out the operations and functions described herein. The methods (e.g., method 400 and/or other operations described herein, as well as variants that may be learned though practice, can be implemented as such algorithm(s).

The means can be configured to obtain sensor data such as image data (e.g. from one or more image sensors such as cameras, etc.), LIDAR point cloud data associated with an environment external to an autonomous vehicle, RADAR data, etc. The means can be configured to obtain image data from one or more sensors. A machine-learned model data unit 904 is one example of a means for obtaining sensor data such as image and/or video data as described herein.

The means can be configured to process the image data for example by providing the image to a machine-learned segmentation model. The means can be configured to generate a truncated signed distance function initialization, a deep feature representation, and/or other outputs of multi-headed machine-learned models according to the present disclosure. A machine-learned model unit 904 is one example of a means for determining model outputs. These model outputs can be used at least in part by the energy function unit 906, which is one example of a means for updating the output(s) of the machine-learned model to generate the final TSDF and/or the segmentation mask. For some implementations, the means for the machine-learned model unit 904 and the energy function unit 906 may be combined into a single means.

The means can be configured to train the machine-learned image segmentation model end-to-end to minimize an objective function. A model training unit 912 is one example of a means for training the machine learned image compression model. The model training unit 912 can include data and/or instructions for performing supervised, semi-supervised, and/or unsupervised learning tasks.

As an example for illustration, FIG. 6 depicts an example architecture and data flow for an example machine-learned segmentation model. Four different heads can be configured to receive image data or an intermediate representation of image data determined by a region proposal network backbone (e.g., a Feature Pyramid Network-FPN such as a ResNet-FPN) to output object localization/classification results, a truncated signed distance function (TSDF), a set of object-aware energy hyperparameters, and a deep object feature representation. These intermediate outputs are then passed into the Chan-Vese system to output a further refined mask.

In some implementations, to generate regions of interest in which candidate objects are located, the region proposal network (RPN) can slide over a convolutional feature map that is the output by a last convolutional layer of a convolutional neural network. In some implementations, the RPN has a classifier and a regressor and can use anchors. An anchor is the central point of the sliding window. The classifier can determine the probability of a proposal having the target object. The regressor can regress the coordinates of the proposals. In some implementations, the RPN can be pre-trained and then, optionally, retrained as part of the illustrated architecture.

For each detection, the corresponding region of interest (RoI) can be fed to a respective series of convolutions to obtain a truncated signed distance function (TSDF) initialization, a deep feature tensor, and a set of hyperparameters. These in turn can be input to an energy function optimization procedure (e.g., one based on Chan-Vese intensity optimization) which outputs a final TSDF.

While the present subject matter has been described in detail with respect to specific example embodiments thereof, it will be appreciated that those skilled in the art, upon attaining an understanding of the foregoing may readily produce alterations to, variations of, and equivalents to such embodiments. Accordingly, the scope of the present disclosure is by way of example rather than by way of limitation, and the subject disclosure does not preclude inclusion of such modifications, variations and/or additions to the present subject matter as would be readily apparent to one of ordinary skill in the art. 

What is claimed is:
 1. A computer-implemented method for generating instance segmentation masks for objects depicted in images, the method comprising: providing, by one or more computing devices, an image comprising a plurality of pixels to a machine-learned segmentation model comprising a plurality of heads, wherein the plurality of heads comprise: a first head configured to generate a truncated signed distance function initialization for an object detected in the image, wherein the truncated signed distance function initialization estimates a signed distance for a subset of pixels of the plurality of pixels to a closest pixel that is associated with an initial boundary of the object, and a second head configured to output a deep object feature representation for the object, wherein the deep object feature representation comprises a feature embedding generated by mapping intensities for each pixel in the subset of pixels to a different dimensional space; generating, by the one or more computing devices, the truncated signed distance function initialization with the first head of the machine-learned segmentation model and the deep object feature representation with the second head of the machine-learned segmentation model; for at least one object detected in the image, iteratively updating, by the one or more computing devices and based at least in part on the deep object feature representation, the truncated signed distance function initialization associated with said object by performing Chan-Vese optimization over a number of iterations; and determining, by the one or more computing devices, an instance segmentation mask for the image based on a final truncated signed distance function generated by updating the truncated signed distance function initialization over the number of iterations.
 2. The computer-implemented method of claim 1, wherein: the plurality of heads further comprise a third head configured to generate an object classification and localization for each prop, wherein the classification provides a label for the object and the localization provides a region of pixels included in the plurality of pixels that are associated with the object; and the method further comprises generating, by the one or more computing devices, the object classification and localization with the third head of the machine-learned segmentation model.
 3. The computer-implemented method of claim 2, wherein the plurality of heads further comprise comprising a fourth head configured to determine one or more hyperparameters based at least in part on a label for the object; and wherein the method further comprises: generating by the one or more computing devices, the one or more hyperparameters with the fourth head of the machine-learned segmentation model, wherein each of the one or more hyperparameters are included as parameters for the Chan-Vese optimization.
 4. The computer-implemented method of claim 1, wherein the machine-learned segmentation model further comprises a region proposal network backbone configured to generate a plurality of regions of interest, and wherein the first head and the second head separately operate on each region of interest.
 5. The computer-implemented method of claim 1, wherein the different dimensional space is learned such that pixels of the same instance for a certain object have a closer distance.
 6. The computer-implemented method of claim 1, wherein the Chan-Vese optimization substitutes pixel intensity values for the deep object feature representation.
 7. The computer-implemented method of claim 1, wherein determining the instance segmentation mask comprises applying a Heaviside function to the final truncated signed distance function.
 8. The computer-implemented method of claim 1, wherein performing Chan-Vese optimization comprises optimizing at least three terms of an energy function, the three terms comprising a background constant, a foreground constant, and a current truncated signed distance function iteration, wherein the current truncated signed distance function iteration is an updated truncated signed distance function initialization for a current iteration number.
 9. The computer-implemented method of claim 1, wherein performing Chan-Vese optimization comprises providing at least the truncated signed distance function initialization and the deep object features representation to a parameter-free recurrent neural network.
 10. A computing system comprising: one or more processors; and one or more non-transitory computer-readable media that collectively store: a machine-learned segmentation model comprising a region proposal network and a plurality of heads, wherein the region proposal network processes the image to generate a plurality of regions of interest respectively associated with a plurality of candidate objects, and wherein the plurality of heads comprise: a first head configured to generate a truncated signed distance function initialization for each region of interest, wherein the truncated signed distance function initialization for each region of interest estimates a signed distance for a subset of pixels of the plurality of pixels to a closest pixel that is associated with an initial boundary of the candidate object associated with the region of interest, and a second head configured to output a deep object feature representation for each region of interest, wherein the deep object feature representation for each region of interest comprises a feature embedding generated by mapping intensities for each pixel in the region of interest of pixels to a different dimensional space; and instructions that, when executed by the one or more processors, cause the one or more processors to perform operations, the operations comprising: providing the image comprising the plurality of pixels to the region proposal network; receiving plurality of regions of interest as an output of the region proposal network; and for each of the regions of interest: generating the truncated signed distance function initialization with the first head of the machine-learned segmentation model and the deep object feature representation with the second head of the machine-learned segmentation model; iteratively updating, based at least in part on the deep object feature representation, the truncated signed distance function initialization associated with said object by optimizing an energy function over a number of iterations; and determining an instance segmentation mask for the candidate object based on a final truncated signed distance function generated by updating the truncated signed distance function initialization over the number of iterations.
 11. The computing system of claim 10, wherein the plurality of heads further comprise a third head configured to generate an object classification and localization for the candidate object in each region of interest, wherein the classification provides a label for the candidate object and the localization provides the region of pixels included in the plurality of pixels that are associated with the candidate object; and wherein the operations further comprise generating the object classification and localization with the third head of the machine-learned segmentation model.
 12. The computing system of claim 11, wherein the region proposal network comprises a pre-trained convolutional neural network.
 13. The computing system of claim 10, wherein: the plurality of heads further comprise a fourth head configured to determine one or more hyperparameters based at least in part on the label for the object; the operations further comprise generating the one or more hyperparameters with the fourth head of the machine-learned segmentation model; and each of the one or more hyperparameters are included as parameters for the energy function.
 14. The computing system of claim 10, wherein the different dimensional space is learned such that pixels of the same instance for a certain object have a closer distance.
 15. The computing system of claim 10, wherein the energy function is a modified Chan-Vese level set segmentation, and wherein the modified Chan-Vese level set segmentation substitutes pixel intensity values for the deep object feature representation.
 16. An autonomous vehicle comprising: a computing system comprising one or more non-transitory computer readable media collectively storing instructions that when executed by one or more processors cause the computing system to perform operations, the operations comprising: obtaining, from one or more cameras in communication with the computing system, an image comprising a plurality of pixels; providing the image to a machine-learned segmentation model comprising a plurality of heads, wherein the plurality of heads comprise: a first head configured to generate a truncated signed distance function initialization for an object depicted in the image, wherein the truncated signed distance function initialization estimates a signed distance for a subset of pixels of the plurality of pixels to a closest pixel that is associated with an initial boundary of the object, and a second head configured to output a deep object feature representation for the object, wherein the deep object feature representation comprises a feature embedding generated by mapping intensities for each pixel in a region of pixels to a different dimensional space; generating the truncated signed distance function initialization with the first head of the machine-learned segmentation model and the deep object feature representation with the second head of the machine-learned segmentation model; for at least one object detected in the image: iteratively updating, based at least in part on the deep object feature representation, the truncated signed distance function initialization associated with said object by optimizing an energy function over a number of iterations; determining an instance segmentation mask for the image based on a final truncated signed distance function generated by updating the truncated signed distance function initialization over the number of iterations; and modifying a control operation of the autonomous vehicle based at least in part on the instance segmentation mask, the final truncated signed distance function, or both.
 17. The autonomous vehicle of claim 16, wherein the control operation controls one or more of: a brake system, a steering system, a propulsion system, or combinations thereof.
 18. The autonomous vehicle of claim 17, wherein modifying, based at least in part on the instance segmentation mask, the final truncated signed distance function, or both, the control operation comprises: determining, based at least in part on the instance segmentation mask, the final truncated signed distance function, or both, a policy response; and adjusting, based at least in part on the policy response, a mechanical component of the brake system, the steering system, the propulsion system, or combinations thereof.
 19. The autonomous vehicle of claim 16, wherein the plurality of heads further comprising a third head configured to generate an object classification and localization for an object detected in an image, wherein the classification provides a label for the object and the localization provides a region of pixels included in the one or more pixels that are associated with the object; and wherein the operations further comprise generating the object classification and localization with the first head of the machine-learned segmentation model.
 20. One or more non-transitory computer-readable media that collectively store instructions that when executed by one or more processors cause the one or more processors to perform operations, the operations comprising: obtaining, from one or more cameras in communication with the computing system, an image comprising a plurality of pixels; providing the image to a machine-learned segmentation model comprising a plurality of heads, wherein the plurality of heads comprise: a first head configured to generate a truncated signed distance function initialization for an object depicted in the image, wherein the truncated signed distance function initialization estimates a signed distance for a subset of pixels of the plurality of pixels to a closest pixel that is associated with an initial boundary of the object, and a second head configured to output a deep object feature representation for the object, wherein the deep object feature representation comprises a feature embedding generated by mapping intensities for each pixel in a region of pixels to a different dimensional space; generating the truncated signed distance function initialization with the first head of the machine-learned segmentation model and the deep object feature representation with the second head of the machine-learned segmentation model; for at least one object detected in the image: iteratively updating, based at least in part on the deep object feature representation, the truncated signed distance function initialization associated with said object by optimizing an energy function over a number of iterations; determining an instance segmentation mask for the image based on a final truncated signed distance function generated by updating the truncated signed distance function initialization over the number of iterations; evaluating a loss function that compares the instance segmentation mask to a ground truth mask and compares the final truncated signed distance function to a ground truth truncated signed distance function target; and modifying one or more values or one or more parameters of each of the first head and the second head based at least in part on the loss function. 